package com.monkeys.mapper;

import com.monkeys.pojo.Vehicle;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author KuangTeam
 */
@Mapper
public interface VehicleMapper {

    //插入车辆数据
    void insert(Vehicle vehicle);

    //更新数据
    void update(Vehicle vehicle);

    //查找所有车辆信息
    @Select("select * from vehicle")
    List<Vehicle> selectAll();

    //删除所有信息
    @Delete("delete from vehicle")
    void deleteAll();
}
